//package com.weixin.engine.rabbitmq;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.amqp.rabbit.connection.ConnectionFactory;
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Slf4j
//@Configuration
//public class RabbitMQProducerConfig {
//
//    /**
//     * 配置生产者rabbitTemplate
//     * 生产者只需要配置exchange和routingKey
//     */
//    @Bean(name = "pointRabbitTemplate")
//    public RabbitTemplate pointRabbitTemplate(ConnectionFactory connectionFactory) {
//        RabbitTemplate rabbitTemplate = new RabbitTemplate(connectionFactory);
//        rabbitTemplate.setExchange("testChange");
//        rabbitTemplate.setRoutingKey("testRoutingKey");
//        rabbitTemplate.setMandatory(true);
//        return rabbitTemplate;
//    }
//}